﻿@using BusinessLibrary
@model MMSWebsite.Models.Customer

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
  
}
@{ Html.RenderPartial("DetailCustomer", Model); }
@{ 
    Html.RenderAction("Index", "Asset", new {cusId = @Model.Id});
}

<div style="text-align: center">
@if (User.Identity.IsAuthenticated)
{
    if (Roles.Provider.IsUserInRole(User.Identity.Name, Constants.ADMIN_ROLE))
    {
        <input type="button" onclick="location.href = '@Url.Action("Create", "Asset", new {cusId = Model.Id})'" value="Create New Asset" /> 
    }
}
</div>